<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <jsp:useBean id="user" class="gamer.Bean.User" scope="session"/>
    <link rel="stylesheet" href="../../css/all.css">
</head>
<body class="container">
<div>
    <div class="header">
        <img class="logo-img" src="../../img/logo.png" alt="logo">
        <div class="menu-div">
            <ul>
                <li><a href="../../index.jsp">首页</a></li>
                <li><a href="../game/gameMenu.jsp">游戏菜单</a></li>
                <%
                    if (user.getUser() == null)
                        out.print("<li style=\"background-color: #BBB\"><a href=\"jsp/user/login.jsp\">登录</a></li>");
                    else
                        out.print("<li style=\"background-color: #BBB\"><a href=\"jsp/user/userInfo.jsp\">用户中心</a></li>");
                %>
            </ul>
        </div>
    </div>
    <div class="main-div">
        <div class="from-div">
            <form action="../../login" method="post">
                <label>
                    账户<input type="text" name="user_id" placeholder="用户名">
                </label><br>
                <label>
                    密码<input type="password" name="pwd" placeholder="密码">
                </label><br>
                <input type="submit" value="登录">
            </form>
        </div>
        <br>
        <a href="signup.jsp">没有账号？去注册</a>
    </div>
</div>

</body>
</html>
